#pragma once
#include "View.h"
#include "SDL2_gfxPrimitives.h"

class FigureView : public View, public Observer {
private:
	Figure* figure;

public:
	FigureView::FigureView(Figure* figure, int id);

	Position* FigureView::transformCoordBox2DToSDL(Position* position);

	float FigureView::transfX(float x);
	float FigureView::transfY(float y);

	void FigureView::notify();
	virtual void paint() {};

	virtual void setFigure(Figure* figure) {
		this->figure = figure;
	}

	virtual Figure* getFigure() {
		return this->figure;
	}

	~FigureView();
};

